var curDiv="new";

function selectItem(id,state)
{
	var e=document.getElementById(id);
	if(state)
	{
		e.style.backgroundColor="blue";
		e.style.color="white";
		e.style.fontWeight="bold";
	}
	else
	{
		e.style.backgroundColor="buttonface";
		e.style.color="black";
		e.style.fontWeight="normal";
	}
}

function showDiv(id)
{
	var e1=document.getElementById(id);
	var e2=document.getElementById(curDiv);
	e2.style.display="none";
	e1.style.display="block";
	curDiv=id;
}